<?php 
	$MetaTag = new CoreWebMetaTag();
	$Funcao = new CoreFunctions();
	$Security = new CoreWebSecurity();
	$Form = new CoreWebUiForm();
	echo $MetaTag->getDoctype();
	echo $MetaTag->openHead();
	echo $MetaTag->setTitle(SISTEM_TITLE);
	echo $MetaTag->setCharset();
	echo $MetaTag->setJsUrl();
	echo $MetaTag->addCss("css.css");
	echo $MetaTag->getRobots("index,follow");
	echo $MetaTag->getRobots("archive");
	echo $MetaTag->closeHead();	
	if($_POST){
		if(TbPessoaController::doInsertPessoa($_POST)){
			$Funcao->doRedirect($Funcao->getParentUrl("grid_insert","grid").$Funcao->getParameterPage(),"Cadastro efetuado.");
		}else{
			$Funcao->doAlert("Algo deu errado");
		}
	}
?>
<body>
	<div class="top text">
<?php 
	echo SimpleMenusController::getMenuTopo();
?>	
	</div>
	<div class="bluepanel _title">
		&nbsp;Grid Insert Example
	</div>
	<div class="navbar text">
<?php 
	echo SimpleMenusController::getMenu();
?>		
	</div>
	<div class="panel600 text">
		<div class="topic">Topico</div>
		Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent gravida. Donec laoreet odio. Sed luctus, metus a porttitor placerat, dolor magna ultrices risus, sit amet bibendum diam ante vel est. Sed pede pede, dignissim a, dictum eu, pharetra sit amet, arcu.<br /><br /> 	
		<table class="text" width="600" border="0" cellspacing="0" cellpadding="0">
			<tr class="topgrid">
				<td class="topic" align="left">Inserir Pessoa</td>
				<td width="1" align="right">
					<a class="linkmenu" href="<?=$Funcao->getParentUrl("grid_insert","grid").$Security->getUrlParameter()?>" title="Voltar.">
						voltar
					</a>
				</td>
			</tr>
			<tr class="lineingrid">
			<td colspan="2">
			<br />
<?php 
	echo SimpleFormController::getSimpleFormPessoa($_POST)->show();
?>	
			</td>
			</tr>
		</table>
	</div>
	
	<div class="bottom text">
<?php 
	echo SimpleMenusController::getMenuRodape();
?>	
	</div>
</body>
</html>
